all: clean snake.exe

snake.exe: main.o snake.o block.o
	g++ -mwindows -o snake.exe main.o snake.o block.o ..\RegistryDLL\registry.dll
main.o: main.cpp main.h block.h snake.h ..\RegistryDLL\registry.h
	g++ -c -o main.o main.cpp -D_WIN32_WINNT=0x0502 -DLANG=2
snake.o: snake.cpp snake.h block.h
	g++ -c -o snake.o snake.cpp
block.o: block.cpp block.h
	g++ -c -o block.o block.cpp

clean:
	rm *.o
	rm snake.exe